import tool from '../tool'

export default {
    show(title, pageFn, okButtonCallBack = undefined, okButtonText = '确定') {
        tool.store.setItem('settings', {
            type: 'show',
            pageFn,
            title,
            okButtonCallBack,
            okButtonText
        })
    },
    close: {
        top() {
            tool.store.setItem('settings', {
                type: 'closeTop',
            })
        },
        all() {
            tool.store.setItem('settings', {
                type: 'closeAll',
            })
        }
    }
}